FROM centos-jdk
VOLUME /tmp
#RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai && /etc/localtime
#RUN echo 'Asia/Shanghai' >/etc/timezone
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

# 设置时区为上海
ENV TZ=Asia/Shanghai
# 设置时区信息
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ARG JAR_FILE
COPY ${JAR_FILE} app.jar
# 启动 docker run -d  --name=gateway-admin -p 8445:8445 --net=host -e REGISTER_NACOS_IP=118.24.31.230  -v /home/log/gateway-admin:/home/log/gateway-admin 127.0.0.1:5000/gateway-admin:1.0.0
ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-jar","-Xms258m","-Xmx258m","/app.jar","--spring.cloud.nacos.discovery.ip=${REGISTER_NACOS_IP}"]